import request from '@/utils/request'
// 获取-部门列表数据
export const getDepartSerice = () => {
    return request.get('/company/department')
}
// 获取部门负责人数据
export const getPersonService = () => {
    return request.get('/sys/user/simple')
}
// 新增部门
export const getNewDeptService = (data) => {
    return request.post('/company/department', data)
}

// 获取部门详情接口
export const getDetailsService = (id) => {
    return request.get(`/company/department/${id}`)
}

// 编辑部门接口
export const getModifyService = (data) => {
    return request.put(`/company/department/${data.id}`,data)
}

// 删除部门接口
export const getDelDeptService = (id) => {
    return request.delete(`/company/department/${id}`)
}